package com.example.studentregistration.pojo;

import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class StudentApp {          // 仅类名加 App 后缀，包路径保持原样
    @Alias("编号")
    private Integer id;
    @Alias("学号")
    private String studentNo;
    @Alias("姓名")
    private String name;
    @Alias("身份证")
    private String idCard;
    @Alias("照片")
    private String photo;
    @Alias("性别")
    private String gender;
    @Alias("民族")
    private String nationality;
    @Alias("出生日期")
    private String birthDate;
    @Alias("政治面貌")
    private String politicalStatus;
    @Alias("生源")
    private String admissionSource;
    @Alias("联系电话")
    private String phoneNumber;
    @Alias("学院")
    private String college;
    @Alias("专业")
    private String major;
    @Alias("班级")
    private String className;
    @Alias("籍贯")
    private String nativePlace;
    @Alias("密码")
    private String password;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    @Alias("年龄")
    private Integer age;
    @Alias("家庭地址")
    private String address;
    @Alias("状态 0未激活 1已申请 2已审批")
    private Integer status;
    @Alias("紧急联系人")
    private String emergencyContact;
    @Alias("关系")
    private String relationship;
    @Alias("紧急联系电话")
    private String emergencyPhone;
}
